package org.springframework.ioc.beanfactory.pojo;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;

public class GeneralSpringAnnotationInject {
	@Autowired
	private Person teacher;
	@Resource(name="student",type=Person.class)
	private Person student;

	public Person getTeacher() {
		return teacher;
	}

	public void setTeacher(Person teacher) {
		this.teacher = teacher;
	}
	
}
